package com.xt.favorites.admin.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xt.common.utils.PageUtils;
import com.xt.common.utils.Query;

import com.xt.favorites.admin.dao.LookRecordDao;
import com.xt.favorites.admin.entity.LookRecordEntity;
import com.xt.favorites.admin.service.LookRecordService;


@Service("lookRecordService")
public class LookRecordServiceImpl extends ServiceImpl<LookRecordDao, LookRecordEntity> implements LookRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LookRecordEntity> page = this.page(
                new Query<LookRecordEntity>().getPage(params),
                new QueryWrapper<LookRecordEntity>()
        );

        return new PageUtils(page);
    }

}